<!--
描述：人员管理-科研人员信息维护-新增组件
开发人：hqj
开发日期：2017年8月22日
-->

<template lang="pug">
    kalix-dialog.user-add(bizKey="researcher" ref="kalixBizDialog" v-bind:form-model.sync="formModel" v-bind:targetURL="targetURL")
        div.el-form(slot="dialogFormSlot")
            div.s-flex
                el-form-item.s-flex_item(label="所在部门" prop="orgId" v-bind:label-width="labelWidth")
                    kalix-tree2.inline(v-model="formModel.orgId" v-bind:treeDataURL="orgURL")
                el-form-item.s-flex_item(label="入校年份" prop="entranceYear" v-bind:label-width="labelWidth")
                    kalix-date-picker(v-model="formModel.entranceYear" type="year")
            div.s-flex
                el-form-item.s-flex_item(label="工号" prop="code" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.code")
                el-form-item.s-flex_item(label="姓名" prop="name" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.name")
            div.s-flex
                el-form-item.s-flex_item(label="身份证号" prop="identificationCard" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.identificationCard")
                el-form-item.s-flex_item(label="性别" prop="sex" v-bind:label-width="labelWidth")
                    kalix-dict-select(v-model="formModel.sex" appName="admin" dictType="性别")
            div.s-flex
                el-form-item.s-flex_item(label="出生日期" prop="birthday" v-bind:label-width="labelWidth")
                    kalix-date-picker(v-model="formModel.birthday")
                el-form-item.s-flex_item(label="民族" prop="nation" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.nation")
            div.s-flex
                el-form-item.s-flex_item(label="籍贯" prop="placeOfOrigin" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.placeOfOrigin")
                el-form-item.s-flex_item(label="现住址" prop="address" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.address")
            div.s-flex
                el-form-item.s-flex_item(label="联系电话" prop="phone" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.phone")
                el-form-item.s-flex_item(label="电子邮件" prop="email" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.email")
            div.s-flex
                el-form-item.s-flex_item(label="最初职称" prop="firstTitle" v-bind:label-width="labelWidth")
                    kalix-dict-select(v-model="formModel.firstTitle" appName="admin" dictType="职称")
                el-form-item.s-flex_item(label="最初评定时间" prop="firstEvaluateDate" v-bind:label-width="labelWidth")
                    kalix-date-picker(v-model="formModel.firstEvaluateDate")
            div.s-flex
                el-form-item.s-flex_item(label="最后职称" prop="lastTitle" v-bind:label-width="labelWidth")
                    kalix-dict-select(v-model="formModel.lastTitle" appName="admin" dictType="职称")
                el-form-item.s-flex_item(label="最后评定时间" prop="lastEvaluateDate" v-bind:label-width="labelWidth")
                    kalix-date-picker(v-model="formModel.lastEvaluateDate")
            div.s-flex
                el-form-item.s-flex_item(label="最后学历" prop="education" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.education")
                el-form-item.s-flex_item(label="最后学位" prop="degree" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.degree")
            div.s-flex
                el-form-item.s-flex_item(label="毕业院校" prop="school" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.school")
                el-form-item.s-flex_item(label="研究方向" prop="direction" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.direction")
</template>

<script type="text/ecmascript-6">
    import FormModel from './model'
    import {ResearcherURL, orgURL} from '../../config.toml'

    export default {
        name: 'AdminResearcherAdd',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                rules: {
                },
                targetURL: ResearcherURL,
                orgURL: orgURL,
                labelWidth: '120px'
            }
        },
        components: {},
        created() {
        },
        methods: {
        }
    }
</script>


